package com.fengcheng.service;

import com.fengcheng.vo.ReturnVo;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface FileService {
     List<Map<String, Object>> getFileList(HttpServletRequest request, @RequestParam("srcPath") String srcPath) throws Exception;

     ReturnVo mkdir(@RequestParam("path") String path, HttpServletRequest request)throws Exception;

     ReturnVo uploadFile(@RequestParam("file") MultipartFile[] fileList, @RequestParam("srcPath") String srcPath, HttpServletRequest request) throws Exception;

     ReturnVo upDownFile(@RequestBody Map<String,String> srcUri, HttpServletRequest request);

     Boolean deleteFile(@RequestParam("path") String path,  HttpServletRequest request) throws Exception;

     Boolean reName(@RequestParam("oldPath") String oldPath, @RequestParam("newName")String newName, HttpServletRequest request)throws Exception;


     Boolean moveFile(@RequestParam("oldPath") String oldPath, @RequestParam("newPath")String newPath, HttpServletRequest request)throws Exception;
}
